package com.wch.qa.client;

import com.wch.qa.client.impl.LabelCliendImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
//@FeignClient("tensquare-base")
@FeignClient(value = "tensquare-base",fallback = LabelCliendImpl.class)  //modify by WanChengHe 20190528 使用熔断器
public interface LabelClient {

    @RequestMapping(value = "/label/{id}",method = RequestMethod.GET)
    public Result findById(@PathVariable("id") String id);

}
